package com.wing.productionPlan.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.productionPlan.dao.DayTakeGoodsItermDao;
import com.wing.productionPlan.dao.DayTakeGoodsProductDao;
import com.wing.productionPlan.model.entity.DayTakeGoodsIterm;
import com.wing.productionPlan.model.entity.DayTakeGoodsProduct;
import com.wing.productionPlan.model.response.DayTakeGoodsItermVO;
import com.wing.productionPlan.model.response.DayTakeGoodsProductVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 *  日提货订单  产品明细-ServiceImpl
 *
 * @author
 */
@Service
@Slf4j
public class DayTakeGoodsProductServiceImpl extends ServiceImpl<DayTakeGoodsProductDao, DayTakeGoodsProduct> implements DayTakeGoodsProductService {


    @Override
    public Page<DayTakeGoodsProductVO> pageList4app(Page<DayTakeGoodsProductVO> pg, Map map) {
        List<DayTakeGoodsProductVO> vos = this.baseMapper.pageList4app(pg, map);
        pg.setRecords(vos);
        return pg;
    }

    @Override
    public DayTakeGoodsProductVO getTakeGoodsProductById(Long id) {
        return baseMapper.getTakeGoodsProductById(id);
    }

}

